package o;

import java.io.IOException;
import org.json.JSONException;

public class bjq {
    public static <T extends bje> T ˊ(Class<T> cls, fuy o_fuy, bjm o_bjm) {
        InstantiationException e;
        IllegalAccessException e2;
        T t;
        IOException e3;
        JSONException e4;
        o_bjm.ˋ("responseBodyConvert");
        try {
            bje o_bje = (bje) cls.newInstance();
            if (o_fuy == null) {
                return o_bje;
            }
            try {
                return (bje) bjv.ॱ(o_fuy.ʽ(), cls);
            } catch (InstantiationException e5) {
                e = e5;
            } catch (IllegalAccessException e6) {
                e2 = e6;
                o_bjm.ˋ("IllegalAccessException:" + e2.getMessage());
                return t;
            } catch (IOException e7) {
                e3 = e7;
                o_bjm.ˋ("IOException:" + e3.getMessage());
                return t;
            } catch (JSONException e8) {
                e4 = e8;
                o_bjm.ˋ("JSONException:" + e4.getMessage());
                return t;
            }
        } catch (InstantiationException e9) {
            InstantiationException instantiationException = e9;
            t = null;
            e = instantiationException;
            o_bjm.ˋ("InstantiationException:" + e.getMessage());
            return t;
        } catch (IllegalAccessException e10) {
            IllegalAccessException illegalAccessException = e10;
            t = null;
            e2 = illegalAccessException;
            o_bjm.ˋ("IllegalAccessException:" + e2.getMessage());
            return t;
        } catch (IOException e11) {
            IOException iOException = e11;
            t = null;
            e3 = iOException;
            o_bjm.ˋ("IOException:" + e3.getMessage());
            return t;
        } catch (JSONException e12) {
            JSONException jSONException = e12;
            t = null;
            e4 = jSONException;
            o_bjm.ˋ("JSONException:" + e4.getMessage());
            return t;
        }
    }

    public static <T extends bje> T ॱ(Class<T> cls, bjm o_bjm) {
        T t;
        IllegalAccessException e;
        InstantiationException e2;
        try {
            t = (bje) cls.newInstance();
            try {
                if (t instanceof bjg) {
                    ((bjg) t).ॱ();
                }
            } catch (IllegalAccessException e3) {
                e = e3;
                o_bjm.ˋ("IllegalAccessException:" + e.getMessage());
                return t;
            } catch (InstantiationException e4) {
                e2 = e4;
                o_bjm.ˋ("InstantiationException" + e2.getMessage());
                return t;
            }
        } catch (IllegalAccessException e5) {
            IllegalAccessException illegalAccessException = e5;
            t = null;
            e = illegalAccessException;
            o_bjm.ˋ("IllegalAccessException:" + e.getMessage());
            return t;
        } catch (InstantiationException e6) {
            InstantiationException instantiationException = e6;
            t = null;
            e2 = instantiationException;
            o_bjm.ˋ("InstantiationException" + e2.getMessage());
            return t;
        }
        return t;
    }
}
